--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 9c7a04b66c3442056d82227e077edf9d7efe171d
Parents : 2b93b1b
Author : Mark Qvist <mark@unsigned.io>
Date : 2025-01-08T21:26:37+01:00
Always use external crystal oscillator on SX1280
Changes
Diff
diff --git a/sx128x.cpp b/sx128x.cpp
index cb4e7b9..3c86990 100644
--- a/sx128x.cpp
+++ b/sx128x.cpp
@@ -594,9 +594,7 @@ void sx128x::receive(int size) {
}
void sx128x::standby() {
- uint8_t byte;
- if (_tcxo) { byte = 0x01; } // STDBY_XOSC
- else { byte = 0x00; } // STDBY_RC
+ uint8_t byte = 0x01; // Always use STDBY_XOSC
executeOpcode(OP_STANDBY_8X, &byte, 1);
}
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────